package com.wnxy.sdd.front.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Jet
 * @since 2023-04-06
 */
@Getter
@Setter
@TableName("sdd_order")
@ApiModel(value = "Order对象", description = "订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId
    private String id;

    @ApiModelProperty("购买课程id")
    private String courseId;

    @ApiModelProperty("支付宝交易号")
    private String tradeNo;

    @ApiModelProperty("下单时间")
    private Date orderTime;

    @ApiModelProperty("下单用户")
    private String userId;

    @ApiModelProperty("订单金额")
    private BigDecimal price;

    @ApiModelProperty("付款时间")
    private Date payTime;

    @ApiModelProperty("订单状态(1：待支付 2：已支付 3：进行中 4：已取消 5：已完成 6.退款中 7. 已退款)")
    private String status;


}
